#include "picture.h"
int scr_x = 0;
int scr_y = 0;
int time = 0;
CSprite * StaticPic;
LPD3DXSPRITE SpriteHandlerSP;
CSprite * EnemiesPic;
LPD3DXSPRITE SpriteHandlerEP;
CSprite * BulletPic;
LPD3DXSPRITE SpriteHandlerBP;
CSprite * ItemPic;
LPD3DXSPRITE SpriteHandlerIP;
CSprite * FPic;
LPD3DXSPRITE SpriteHandlerFP;
CSprite * overPic;
LPD3DXSPRITE SpriteHandlerOP;
CSprite * NumberPic;
LPD3DXSPRITE SpriteHandlerNP;
CSprite * StatusPic;
LPD3DXSPRITE SpriteHandlerStatusP;
LPDIRECT3DSURFACE9 _BackBuffer;
void LoadNumberPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerNP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerNP);
	NumberPic = new CSprite(SpriteHandlerNP,L"number.bmp");
}
void LoadStaticPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerSP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerSP);
	StaticPic = new CSprite(SpriteHandlerSP,L"Objects.bmp");
}

void LoadStatusPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerStatusP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerStatusP);
	StatusPic = new CSprite(SpriteHandlerStatusP,L"status.bmp");
}

void LoadEnemiesPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerEP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerEP);
	EnemiesPic = new CSprite(SpriteHandlerEP,L"Enemies.bmp");
}

void LoadBulletPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerBP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerBP);
	BulletPic = new CSprite(SpriteHandlerBP,L"Bullet.bmp");
}

void LoadItemPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerIP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerIP);
	ItemPic = new CSprite(SpriteHandlerIP,L"Items.bmp");
}

void LoadFinishPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerFP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerFP);
	FPic = new CSprite(SpriteHandlerFP,L"finish.bmp");
}

void LoadoverPic(LPDIRECT3DDEVICE9 d3ddv)
{
	D3DXCreateSprite(d3ddv,&SpriteHandlerOP);
	HRESULT res = D3DXCreateSprite(d3ddv,&SpriteHandlerOP);
	overPic = new CSprite(SpriteHandlerOP,L"over.bmp");
}